package com.zay.a5_buttons;

import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Button btn1 = findViewById(R.id.but1);
        Button btn2 = findViewById(R.id.but2);
        Button btn3 = findViewById(R.id.but3);
        btn1.setOnClickListener(view -> {
            Intent intent = new Intent(MainActivity.this , LoginActivity.class);
            startActivity(intent);
        });
        btn2.setOnClickListener(view -> {
            Intent intent=new Intent(MainActivity.this,StudentSystemActivity.class);
            startActivity(intent);
        });
        btn3.setOnClickListener(view -> {
            Intent intent=new Intent(MainActivity.this,FragmentActivity.class);
            startActivity(intent);
        });
    }
}